﻿using System.ComponentModel;

namespace Best.SmartCms.Dto.Response
{
    /// <summary>
    /// 返回码
    /// </summary>
    public enum ResponseCode
    {
        /// <summary>
        /// 成功
        /// </summary>
        [Description("成功")]
        Success = 0,
        /// <summary>
        /// 参数错误
        /// </summary>
        [Description("参数错误")]
        ParameterError = 10000,
        /// <summary>
        /// 空参数错误
        /// </summary>
        [Description("空参数错误")]
        NullParameterError = 10001,
        /// <summary>
        /// 参数格式错误
        /// </summary>
        [Description("参数格式错误")]
        ParameterFormatError = 10002,
        /// <summary>
        /// 参数校验错误
        /// </summary>
        [Description("参数校验错误")]
        ValidationParameterError = 10003,
        /// <summary>
        /// 参数格式错误
        /// </summary>
        [Description("参数格式错误")]
        RequestParameterError = 10004,
        /// <summary>
        /// 请求空参数错误
        /// </summary>
        [Description("请求空参数错误")]
        NotFoundError = 20000,
        /// <summary>
        /// 超过数据的最低限制
        /// </summary>
        [Description("超过数据的最低限制")]
        OutOfRangeError = 20001,
        /// <summary>
        /// 数据修改限制
        /// </summary>
        [Description("数据修改限制")]
        OperationLimit = 20002,
        /// <summary>
        /// 已被使用
        /// </summary>
        [Description("已存在")]
        PresenceError = 20003,
        /// <summary>
        /// 值重复
        /// </summary>
        [Description("值重复错误")]
        ValueDuplicateError = 20004,
        /// <summary>
        /// 已登录
        /// </summary>
        [Description("已登录")]
        LoginedError = 20005,
        /// <summary>
        /// 强制退出提醒
        /// </summary>
        [Description("强制退出提醒")]
        ForceLogout =20006,
        /// <summary>
        /// 数据更新错误
        /// </summary>
        [Description("数据更新错误")]
        DbUpdateError = 20007,
        /// <summary>
        /// 数据不同步错误
        /// </summary>
        [Description("数据不同步错误")]
        DbConcurrencyError = 20008,
        /// <summary>
        /// 签名错误
        /// </summary>
        [Description("签名错误")]
        TokenError = 30000,
        /// <summary>
        /// 权限不足
        /// </summary>
        [Description("权限不足")]
        Forbidden = 40000,
        /// <summary>
        /// 系统错误
        /// </summary>
        [Description("系统错误")]
        SystemError = 50000,
    }
}
